home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _EC392BF741DE43DD9CE62FE008C7B255 < prev    next >
Encoding:
Text File  |  2002-04-25  |  4.6 KB  |  262 lines

  1. {
  2.     \\ SET VIOLENCE PASSWORD
  3.  
  4.     menuDef 
  5.     {
  6.         name        "violence_setpassword_popmenu"
  7.         visible        0
  8.         fullscreen    0
  9.         rect        0 0 640 480
  10.         focusColor    .49 .56 .27 1
  11.         style        WINDOW_STYLE_FILLED
  12.         popup
  13.  
  14.         onOpen
  15.         {
  16.             uiScript OpenParentalPasswordMenu ; 
  17.  
  18.             setfocus "password_entry" ;
  19.         }
  20.  
  21.         onClose
  22.         {
  23.             setcvar setpassword_error "  "
  24.         }
  25.  
  26.         onESC 
  27.         { 
  28.             close violence_setpassword_popmenu ;
  29.         }
  30.  
  31.         itemDef
  32.         {
  33.             name        window
  34.             rect        0 0 640 480
  35.             style        WINDOW_STYLE_FILLED
  36.             backcolor    0 0 0 .5
  37.             visible        1
  38.             decoration
  39.         }
  40.  
  41.         itemDef 
  42.         {
  43.             name        window
  44.             rect        182 122 300 300
  45.             background    "gfx/menus/backdrop/requestor"
  46.             style        WINDOW_STYLE_SHADER
  47.             visible        1
  48.             decoration
  49.         }
  50.  
  51.         itemDef 
  52.         {
  53.             name        window
  54.             text        "New Password"
  55.             style        WINDOW_STYLE_FILLED
  56.             textfont    "hud"
  57.             textscale    .53
  58.             rect        200 136 240 33
  59.             textalign    1
  60.             textalignx    120
  61.             textaligny    10
  62.             forecolor    .12 .14 .08 1
  63.             backcolor    0 0 0 .25
  64.             visible        1
  65.             decoration
  66.         }
  67.  
  68.         ////////////////////////////////////////////////////////////////////////
  69.         //    ENTER NAME AND ADDRESS
  70.         ////////////////////////////////////////////////////////////////////////
  71.  
  72.         itemDef 
  73.         {
  74.             name        window
  75.             text        "Password"
  76.             textfont    "hud"
  77.             textscale    .43
  78.             rect        242 200 260 20
  79.             textalignx    0
  80.             textaligny    2
  81.             forecolor    .12 .14 .08 1
  82.             visible        1
  83.             decoration
  84.         }
  85.  
  86.         itemDef 
  87.         {
  88.             name        password_entry
  89.             style        WINDOW_STYLE_FILLED
  90.             maxchars    15
  91.             textfont    "hud"
  92.             textscale    .43
  93.             type        ITEM_TYPE_PASSWORDFIELD
  94.             cvar        "ui_lock_password"
  95.             rect        242 220 160 20
  96.             textalign    0
  97.             textalignx    0
  98.             textaligny    2
  99.             forecolor    1 1 1 1
  100.             backcolor    0 0 0 .25
  101.             visible        1
  102.  
  103.             action
  104.             {
  105.                 play "sound/misc/menus/select.wav" ;
  106.             }
  107.             mouseenter 
  108.             { 
  109.                 play "sound/misc/menus/hilite1.wav" ; 
  110.                 setitemcolor password_entry backcolor 0 0 0 .75 
  111.             }
  112.             mouseexit 
  113.             { 
  114.                 setitemcolor password_entry backcolor 0 0 0 .25 
  115.             }
  116.         }
  117.  
  118.  
  119.  
  120.         itemDef 
  121.         {
  122.             name        window
  123.             text        "Re-Enter Password"
  124.             textfont    "hud"
  125.             textscale    .43
  126.             rect        242 250 260 20
  127.             textalignx    0
  128.             textaligny    2
  129.             forecolor    .12 .14 .08 1
  130.             visible        1
  131.             decoration
  132.         }
  133.  
  134.         itemDef 
  135.         {
  136.             name        password_entry2
  137.             style        WINDOW_STYLE_FILLED
  138.             maxchars    15
  139.             textfont    "hud"
  140.             textscale    .43
  141.             type        ITEM_TYPE_PASSWORDFIELD
  142.             cvar        "ui_lock_password2"
  143.             rect        242 270 160 20
  144.             textalign    0
  145.             textalignx    0
  146.             textaligny    2
  147.             forecolor    1 1 1 1
  148.             backcolor    0 0 0 .25
  149.             visible        1
  150.  
  151.             action
  152.             {
  153.                 play "sound/misc/menus/select.wav" ;
  154.             }
  155.             mouseenter 
  156.             { 
  157.                 play "sound/misc/menus/hilite1.wav" ; 
  158.                 setitemcolor password_entry2 backcolor 0 0 0 .75 
  159.             }
  160.             mouseexit 
  161.             { 
  162.                 setitemcolor password_entry2 backcolor 0 0 0 .25 
  163.             }
  164.         }
  165.  
  166.  
  167.  
  168.         itemDef 
  169.         {
  170.             name        ok_button
  171.             text        "OK"
  172.             type        ITEM_TYPE_BUTTON
  173.             style        WINDOW_STYLE_FILLED
  174.             rect        235 330 60 26
  175.  
  176.             textfont    "hud"
  177.             textscale    .43
  178.             textalign    0
  179.               textalignx    20
  180.              textaligny    5
  181.             forecolor    .12 .14 .08 1
  182.             backcolor    0 0 0 0
  183.             visible        1
  184.             border        1
  185.             bordercolor    0 0 0 1
  186.             
  187.             action 
  188.             { 
  189.                 play "sound/misc/menus/select.wav" ; 
  190.  
  191.                 uiScript UpdateParentalPassword ; 
  192.  
  193. //                close violence_setpassword_popmenu ; 
  194.             }
  195.             mouseEnter 
  196.             { 
  197.                 play "sound/misc/menus/hilite1.wav" ; 
  198.                 setitemcolor ok_button backcolor .12 .14 .08 1
  199.                 setitemcolor ok_button forecolor .49 .56 .27 1
  200.             }                 
  201.             mouseExit 
  202.             { 
  203.                 setitemcolor ok_button backcolor 0 0 0 0
  204.                 setitemcolor ok_button forecolor .12 .14 .08 1
  205.             }
  206.         }
  207.  
  208.         itemDef 
  209.         {
  210.             name        cancel_button
  211.             text        "Cancel"
  212.             type        ITEM_TYPE_BUTTON
  213.             style        WINDOW_STYLE_FILLED
  214.             rect        345 330 60 26
  215.  
  216.             textfont    "hud"
  217.             textscale    .43
  218.             textalign    0
  219.               textalignx    8
  220.              textaligny    5
  221.             forecolor    .12 .14 .08 1
  222.             backcolor    0 0 0 0
  223.             visible        1
  224.             border        1
  225.             bordercolor    0 0 0 1
  226.             
  227.             action 
  228.             { 
  229.                 play "sound/misc/menus/select.wav" ; 
  230.  
  231.                 close violence_setpassword_popmenu ; 
  232.             }
  233.             mouseEnter 
  234.             { 
  235.                 play "sound/misc/menus/hilite1.wav" ; 
  236.                 setitemcolor cancel_button backcolor .12 .14 .08 1
  237.                 setitemcolor cancel_button forecolor .49 .56 .27 1
  238.             }                 
  239.             mouseExit 
  240.             { 
  241.                 setitemcolor cancel_button backcolor 0 0 0 0
  242.                 setitemcolor cancel_button forecolor .12 .14 .08 1
  243.             }
  244.         }
  245.  
  246.         itemDef 
  247.         {
  248.             name        window
  249.             cvar        "setpassword_error"
  250.             textfont    "hud"
  251.             textscale    .43
  252.             rect        165 300 260 20
  253.             textalignx    2
  254.             textaligny    2
  255.             forecolor    .12 .14 .08 1
  256.             visible        1
  257.             decoration
  258.         }
  259.  
  260.     }
  261. }
  262.